package com.example.demo.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;

import com.example.demo.mapper.FavoriteMapper;
import com.example.demo.po.Favorite;
import com.example.demo.service.FavoriteService;
import com.example.demo.util.RedisUtil;

@Service
public class FavoriteServiceImpl implements FavoriteService{
	
	@Autowired
	private FavoriteMapper favoriteMapper;
	@Autowired
	private RedisTemplate<String,Object> redisTemplate;
	@Autowired
	private RedisUtil redisUtil;
	@Override
	public long updateFavorofArticeById() {
		
		return redisUtil.incr("h", 1);
	}
	@Override
	public Favorite getOne(String id) {
		// TODO Auto-generated method stub
		return null;
	}


}
